package com.team11.server.pojo.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel("个人综合得分详情--作业情况")
public class MScoreDetails {


    @ApiModelProperty(value = "作业主题")
    @TableField("h_title")
    private String hTitle;

    @ApiModelProperty(value = "作业主题")
    @TableField("h_type")
    private Integer hType;

    @ApiModelProperty(value = "下发作业老师")
    @TableField(exist = false)
    private String workTeacher;

    @ApiModelProperty(value = "发布时间")
    @TableField("h_setime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime hSetime;

    @ApiModelProperty(value = "结束时间")
    @TableField("h_stoptime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime hStoptime;

    @ApiModelProperty(value = "实际提交时间")
    @TableField("h_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime hTime;

    @ApiModelProperty(value = "分数")
    private Float score;

    @ApiModelProperty(value = "作业提交表id")
    @TableId(value = "id")
    private Integer homeworkId;

    @ApiModelProperty("提交情况")
    @TableField(exist = false)
    private String workStatus;

//    @ApiModelProperty("个人信息")
//    @TableField(exist = false)
//    private List<Map<String, Object>> list;

}
